package com.example.intermingle.contrllor;

import com.example.intermingle.dto.ResourcesDto;
import com.example.intermingle.service.ResourcesService;
import com.example.intermingle.vo.Resources;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 绿松石
 * @version V1.0
 * @Title ConfigContrllor
 * @Description
 * @date 2021年08月27日 09:50
 * @since V1.0
 */
/**
 * 获取配置信息
 */
@RestController
@RequestMapping( "/config" )
public class ConfigContrllor {

    @Autowired
    ResourcesService resourcesService;

    @RequestMapping( "/selectResources" )
    public List<ResourcesDto> selectResources(){
        return  resourcesService.selectResources();
    }


}
